package io.github.enbool.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
public class Device extends AbstractEntity {

	private static final long serialVersionUID = 1L;

	@Column(unique = true)
	private String name;
	
	private String image;
	
	private String username;
	private String password;
	
	private String description;	
	
	@ManyToOne
	@JoinColumn(name = "product_id")
	private Product product;
	
	@ManyToOne
	@JoinColumn(name = "create_user_id")
	private User createUser;
}
